<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
	.top{
		width:100%;
		height:80px;
		background: rgb(254,238,189);
		padding-bottom: 10px;
	}
	.left{
		width:15%;
		height:520px;
		float:left;
		background:red;
	}
	.right{
		width:85%;
		height:520px;
		float:left;	
		overflow:hidden;
	}
	.bottom{
		width:100%;
		height:100px;
		margin-top: 520px; 
		background: rgb(254,238,189);
	}
	ul{
	list-style:none;
	margin:0 auto;
}
ul:hover{
	cursor:pointer;
}
ul li{
	padding:10px;
}
.show{
	display:block;
}
.hidden{
	display:none;
}
a{
text-decoration:none;
}
#subMenu1 li{
	border:1px solid white;
}
#subMenu2 li{
	border:1px solid white;
}
#subMenu3 li{
	border:1px solid white;
}
#subMenu4 li{
	border:1px solid white;
}
</style>
<script language="javascript">
	function subMenuChangStat(x){
		var secondMenu = document.getElementById("subMenu"+x);
		
		if(secondMenu.className=="hidden"){
			secondMenu.className="show";
		}else{
			secondMenu.className="hidden";
		}
	}
</script>
</head>
<body style="background: rgb(254,238,189);">
<c:if test="${ not empty sessionScope.user}">
<div class="top" style="background: brown;">
	<h2 align="center" style="padding-top:25px;">小虎队水果商店后台管理</h2>
	</div>
	<div class="left" style="background: gray;">
		<ul>
			<li>
				<div class="menu" onclick="subMenuChangStat(1);">信息管理</div>
				<ul id="subMenu1" class="hidden">
					<li>
						
						<a href="HistoryMessage.jsp" target="content">查看历史信息</a>
					</li>
					<li>
						<a href="ChangePwd.jsp">修改密码</a>
					</li>
					<li>
						<a href="CheckUser.jsp" target="content">查看用户信息</a>
					</li>
				</ul>
				</li>
			<li>
				<div class="menu" onclick="subMenuChangStat(2);">水果管理</div>
				<ul id="subMenu2" class="hidden">
					<li>
						<a href="FreezeFruit.jsp" target="content">冻结水果</a>
					</li>
					<li>
						<a href="Putaway.jsp" >上架水果</a>
					</li>
				</ul>
			</li>
			<li>
				<div class="menu" onclick="subMenuChangStat(3);">订单管理</div>
				<ul id="subMenu3" class="hidden">
					<li>
						<a href="order.jsp" target="content">所有订单</a>
					</li>
				</ul>
			</li>
			<li>
				<div class="menu" onclick="subMenuChangStat(4);" name="button3">推荐管理</div>
				<ul id="subMenu4" class="hidden">
					<li>
						<a href="yixiang.jsp" target="content">所有意向订单</a>
					</li>
					<li>
						<a href="Tuijian.jsp" target="content">推荐水果</a>
					</li>
				</ul>
			</li>
			<li>
						<a href="HomePage.jsp">返回主界面</a>
			</li>
			
		</ul>
	</div>
	<div class="right" style="background: rgb(254,238,189);">
		<iframe name="content" src="image/fruit.webp" width="100%" height="520" frameborder="0"></iframe>
	</div>
	
	<div class="bottom"><h2 align="center" valign="middle">小虎队成员所有</h2></div>
</c:if>
<c:if test="${  empty sessionScope.user}">
<h1>你还未登录！</h1>
<a href="SalerLogin.jsp">点击登录</a>
</c:if>
</body>
</html>